home *** CD-ROM | disk | FTP | other *** search
- From: David Byrden <100101.2547@compuserve.com>
- Message-ID: <4gd89p$hum@news.bridge.net>
- X-Original-Date: 20 Feb 1996 19:43:53 GMT
- Path: in2.uu.net!bounce-back
- Date: 21 Feb 96 07:04:49 GMT
- Approved: fjh@cs.mu.oz.au
- Newsgroups: comp.std.c++
- Subject: Re: vector<T,Allocator> insert functions
- Organization: self-employed
- References: <4g892r$1ave@usenetp1.news.prodigy.com>
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBFAgUBMSrEHuEDnX0m9pzZAQFtLAF/e3DgeR7FFSiyqh0xIAdi5sA3pe8lmnau
- Zmo9kLPXSBxAneSBZG+9djbpQTcsZXjV
- =mKMR
-
- Karen;
-
- >> As a minimum, I guess that begin() <= position <= end(). Are
- >> insertion points allowed outside of these values?
-
- No. To insert outside of these limits would create a vector with some
- 'empty' places, i.e. uninitialised RAM. Without looking it up, I am pretty
- sure that the intention of the template vector is that it hold a
- contigous block of valid objects. Remember, when elements are shuffled
- around, operator= is used on them without any check to see that they are
- valid.
-
- David
- ---
- [ To submit articles: try just posting with your news-reader.
- If that fails, use mailto:std-c++@ncar.ucar.edu
- FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
- Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
- Comments? mailto:std-c++-request@ncar.ucar.edu.
- ]
-